package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 联系方式申请实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_contact_apply")
@Schema(name = "YunkeContactApply", description = "联系方式申请实体")
public class YunkeContactApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "申请ID")
    private Long id;

    @Schema(description = "申请用户ID")
    private Long applyUserId;

    @Schema(description = "申请用户名")
    private String applyUserName;

    @Schema(description = "申请用户头像")
    private String applyUserAvatar;

    @Schema(description = "目标用户ID")
    private Long targetUserId;

    @Schema(description = "目标用户名")
    private String targetUserName;

    @Schema(description = "目标用户头像")
    private String targetUserAvatar;

    @Schema(description = "申请类型（1微信 2手机 3QQ 4邮箱）")
    private Integer applyType;

    @Schema(description = "申请原因")
    private String applyReason;

    @Schema(description = "申请消息")
    private String applyMessage;

    @Schema(description = "业务类型")
    private String businessType;

    @Schema(description = "关联业务ID")
    private Long businessId;

    @Schema(description = "申请状态（0待处理 1已同意 2已拒绝 3已过期）")
    private Integer applyStatus;

    @Schema(description = "处理时间")
    private Long handleTime;

    @Schema(description = "拒绝原因")
    private String rejectReason;

    @Schema(description = "联系方式信息")
    private String contactInfo;

    @Schema(description = "是否需要支付（0否 1是）")
    private Boolean needPay;

    @Schema(description = "支付金额（分）")
    private Integer payAmount;

    @Schema(description = "支付状态（0未支付 1已支付 2已退款）")
    private Integer payStatus;

    @Schema(description = "支付时间")
    private Long payTime;

    @Schema(description = "过期时间")
    private Long expireTime;

    @Schema(description = "是否已读（0否 1是）")
    private Boolean isRead;

    @Schema(description = "阅读时间")
    private Long readTime;

    @Schema(description = "客户端IP")
    private String clientIp;

    @Schema(description = "扩展信息（JSON格式）")
    private String extraInfo;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 